home *** CD-ROM | disk | FTP | other *** search
- LF - Directory lister for humans.
-
- by: Windspear Software Systems
- P.O. Box 2297
- Iowa City, Iowa 52244
-
- Copyright 1985, 1986 by Windspear Software Systems
-
- All commercial rights reserved. May be freely copied and used for
- private use only -- not for resale. May be distributed on public access
- remote computer bulletin boards.
-
- LF is supplied as a user supported package. Private individuals are
- encouraged to copy and share this package with others. If you are using
- this program and finding it of value, your contribution ($10 suggested)
- will be appreciated. Regardless of whether you make a contribution, you
- are encouraged to copy and share this program.
-
- Please send any comments/problems to Windspear Software Systems. If you
- want a response and are a contributing user also include a self
- addressed stamped envelope.
-
- Please make the user supported software concept work by sending in your
- $10 contribution.
-
- Jordan Archer
- Windspear Software Systems
- P.O. Box 2297
- Iowa City, Iowa 52244
-
- LF - Directory lister for humans.
-
-
- Usage: LF [pattern] ["format"] {prefix[n]option}
-
- Pattern:
-
- [!][drive:][path][file] { [!][file] }
-
- Drive: a - z.
- Path: Any PC-DOS path ending in a '\'.
- File: Normal file name with wild cards.
-
- The '!' means exclude all the files from the previous files list
- taht match the file wild card. This is done in a left to right
- manner. For example:
-
- lf !*.bat Means list all files that are not .bat
-
- lf *.b* !*.?a? *.bat Is processed as:
- 1 ) List all *.b* files.
- 2 ) From that list remove all *.?a? files.
- 3 ) From that list add all *.bat files.
-
- Prefixes:
-
- '-' or '/' if not disabled.
-
- Format: '' or ""
-
- LF can be used to generate batch files with a combination of the fromat
- strings and redirection. When a format string is used all other options
- are turned off allowing easy generation of batch files. For each file
- normally ouput by LF the format string is scanned and the substitution
- commands are replaced with the proper values. Valid substitution
- commands are:
-
- *f - File name. Not including the extension and period.
- *e - File extension. Not including the period.
- ** - For a '*' character.
- *n - New line. Same a a carriage return.
- *t - Tab character.
- *' - The ' character.
- *" - The " character.
-
- The command:
-
- lf *.c "copy *f.*e *f.old*n"
-
- would cause the following output:
-
- copy lf.c lf.old
- copy lflib.c lflib.old
- copy lib.c lib.old
-
- If the above LF command were redirected to a file, it could be used
- as a batch file to copy the '*.c' files.
- ( i.e. 'lf *.c "copy *f.*e *f.old*n" >x.bat' )
-
-
- LF - Directory lister for humans.
-
-
- Format (cont): '' or ""
-
- Warning:
- If you use a format string and want each file line on a separate
- line you must include '*n' as part of your string.
-
- Options:
-
- a - File attribute pattern match. (off)
- The '-a' option controls if the attributes are listed and the
- pattern of attributes that the listed files must match. The
- optional attribute patterns are 'a' archive, 'r' read only,
- 'h' hidden and 's' system. Any pattern character can be prefixed
- with a '!' for exclusion of that attribute. For examples:
-
- -ah - Lists files with the hidden attribute.
-
- -a!a - Lists files without the archive attribute.
-
- -ar!h!s - Lists files that are read only but not hidden or system.
-
- -a - Sets no limits on the attributes so lists all files,
- including hidden and system.
-
- -aarhs - Same as '-a'.
-
- Note: The 'a' attribute means the file's archive bit is
- cleared (has been archived).
-
- c - Combine files and directories. (off)
- When this is on 'LF' is similar to other file listers,
- with directories and files mixed.
-
- d - List directories. (on)
- By using the '-nd' option you will get only the files.
-
- f - List files. (on)
- By using the '-nf' option you will get only the directories.
-
- h - Controls printing of headers.
- 1 - Banner header. (on)
- 2 - Volume label and path header. (on)
- 3 - File type labels. (on)
- no options controls all three at once.
-
-
- LF - Directory lister for humans.
-
-
- Options (cont):
-
- l - List date/time stamps. (off)
-
- s - Sizes of files. (off)
-
- sc - Size of files and directory sizes in clusters. (off)
- Optional cluster size. (i.e. '-sc512' gives size for clusters
- of 512 bytes). This gives the disk space taken by each of
- the subdirectories.
-
- t - List total file space and free disk space. (on)
-
- p - Pause, printer formfeed, file '^Z' terminate. (on)
- The effect of the '-p' option varies depending on where the
- output of the LF command is directed.
- When the output is directed to the screen (the normal case),
- '-p' causes LF to pause every 25 lines.
- When output is redirected to the printer, ( i.e. 'LF *.c >PRN' )
- '-p' causes a formfeed at the end of the output.
- When output is redirected to a file, the '-p' option
- causes LF to write an end-of-file marker '^Z', and '-np' (the default)
- causes LF to fill the last file record with zeroes.
-
- o,r - Order/Reverse for sorting files. ('-on')
- r - Reverse order sort. Yes you can use '-rr' as '-o'.
- s - Size sort.
- n - Name sort. This is the default for '-o'
- d,t,l - Date/time sort.
- e,x - Extension sort.
- u - Unsorted. Order is the same as the DIR command.
- Same as '-no' no order, '-nr' is a reverse unsorted.
-
- z - Everything option. (off)
- This controls the following options all at once:
- a, l, s, t.
-
- 1,2,3,4,5,6,7,8 - Set maxium number of columns. (8)
-
- '-', '/' - Set/Disable the option prefix character(s). (on)
- This allows you to disable one or both of the options prefix
- characters, which are '-' and '/'. (e.g., '-n-' disables the
- '-' prefix so that a following '-no' is considered a file name
- instead of an option.)
-
- All options can be prefixed with a 'n' to turn them off.
-
-
- LF - Directory lister for humans.
-
-
- Environment variable:
-
- The environment varible 'LF' is searched for options
- before the command line. By setting 'LF' you can set
- your own default setings for all options. For example typing
-
- SET LF= -NH -T
-
- at the DOS prompt will set the default value for the header to off
- and the default for disk space totals to on.
-
- Copyright 1985, 1986,
- Windspear Software Systems
- P.O. Box 2297
- Iowa City, Iowa 52244